




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/09/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfstandard.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfstandard.entity.YfStandard;
import com.application.yfstandard.struts.form.YfStandardForm;
import com.application.yfstandard.dao.YfStandardDAO;
 /**
 * 
 * Description:YfStandardService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/09/2012 
 * 
 */
public class YfStandardService extends BaseService
{
	private YfStandardDAO yfStandardDAO;

	public YfStandardDAO getYfStandardDAO() {
		return this.yfStandardDAO;
	}

	public void setYfStandardDAO(YfStandardDAO yfStandardDAO) {
		this.yfStandardDAO = yfStandardDAO;
	}
        

        public YfStandard getYfStandard(YfStandard yfStandard) {
		return (YfStandard) this.getBaseDao().queryByPk(yfStandard, yfStandard.getId());
	}
	
	public Integer getAllCountYfStandard(YfStandardForm yfStandardForm){
		return this.yfStandardDAO.getAllCountYfStandard(yfStandardForm);
	}
	
	public List<YfStandard> searchYfStandard(YfStandardForm yfStandardForm, PageBean pageBean) throws Exception {
		List<YfStandard> yfStandardList = (List) this.yfStandardDAO.searchYfStandard(yfStandardForm, pageBean);
		return yfStandardList;
	}
        
        public void deleteYfStandards(YfStandardForm yfStandardForm){
	   this.yfStandardDAO.deleteYfStandards(yfStandardForm);	 
	}
}
